package com.baidu.bas.upms.service;

import com.baidu.bas.core.view.EruptApiModel;
import com.baidu.bas.upms.base.LoginModel;
import com.baidu.bas.upms.model.EruptUser;

import javax.servlet.http.HttpServletRequest;
import javax.transaction.Transactional;

/**
 * @author liuzhenchuan@foxmail.com
 * @date 2021/2/5
 */
public interface IUserService {

    void saveLoginLog(EruptUser user);

    LoginModel login(String account, String pwd, String verifyCode, HttpServletRequest request);

    EruptApiModel changePwd(String account, String pwd, String newPwd, String newPwd2);

    void createToken(LoginModel loginModel);

    EruptUser getCurrentEruptUser();

    String getToken();

    Long getCurrentUid();
}
